smallest negative balance hackerrank java