solve No 21 problem