Got 50/100 marks .. Please provide some hint where I am wrong or missing any corner case
hello @soniharsh441
dont sort the array.because painter are allowed to paint only continuos section of blocks.
sorting will change the order of blocks.
Thanks and sorry for such silly error !!