Solve first problem