Vimeo Hackerearth Challenge Question

Need help to solve this problem, how to do this better than O(n^2) ?

image
image

Comments (0)