LendingTree Interview Question

do a coding challenge, they give 45 minutes to work on it