How to Solve this problem