scala test code and leetcode interview questions