Not complete solution for Forgot Password problem - http://www.codechef.com/JUNE14/problems/FORGETPW