Help me in solving SYNJREARG4 problem

My issue

write this code in a order

Learning course: Learn Java
Problem Link: Rearrange Code in Java