Unique paths iii interviewbit solution