Tiger Analytics Interview Question

One questions is from list and another one is from string