https://practice.geeksforgeeks.org/problems/stickler-theif/0