i was doing the hit and trial and what i though is why we really need to abs method when we need to get the correct number closest to 10 even if both numbers are -ve. Example: if we take 2 number -8, -13 then abs method will be changing them to +ve number and when we are going to compare the +ve number it is not going to give us the correct value. so i made a change in the abs method which make the method itself irrelevant by setting the first if clause as +a instead of -a. when i ran my program it worked fine and ticked everything as green. but here the trick is how you are going to still identify the number closest to 10 and when i compare my solution with the actual solution, it gives me more confidence that how each exercise if going to help you further to improve yourself.