Solving Ramanujan’s Puzzling Problem