A problem I randomly did on MindSumo for fun