leetcode test justification