Divine IT Interview Question

They gave 6 problems to solve from codechef/codeforces.