https://codinghousebd.com/blog/chef-and-rainbow-array-solution-codechef-rainbowa-solution-in-c-c-java-python-and-c/