Solutions to sample technical interview problems