Hackerrank
Cats and a Mouse- HacerRank problem solution in Java
Two cats and a mouse are at various positions on a line. You will be given their starting positions. Your task is to determine which cat will reach the mouse first, assuming the mouse doe…