//--https://www.codewars.com/kata/55e2adece53b4cdcb900006c/train/javapublic class Tortoise{ public static int[] race(int v1, int v2, int g){ int h = 0; int mm = 0; int s = 0; if(v1 >= v2){ return null; } s = 3600 * g / (v2 - v1); h = s / 3600; s = s - 3600 * h; mm = s / 60; s = s - 60 * mm; return new int[]{h,mm,s}; } }