Solved Hacker earth November clash Problem