Flock Freight interview question

SQL, Simple Java, Leetcode Mediu