Apple Interview Question

round 1: matrix spiral round 2: design a app with data structure hashtable