title: Codility - Frogjmp - Needs improvement
body: <p>I was trying to write a code for Frogjmp from Codility.
  I tried this solution and couple others, I can not get 100%. (other answers produced lower scores)</p>
  
  <pre><code>class Solution {
      public int solution(int X, int Y, int D) {
          // write your code in Java SE 8
          int diff = Y - X;
          int steps = 0;
          if( D != 0){
              if((diff % D) == 0)
                  steps = diff %  D;
              else
                  steps = diff / D + 1;
          }
          return steps;
      }
  }
  </code></pre>
  
  <p>I am not sure what exactly is going wrong in here.</p>
  
  <p>Thank you.</p>
  
  <p>This is my first time asking for help here, so forgive me if I am making mistake on title or anything.</p>