some simple interview problems