Tavant interview question

Problem Solving and Data structure. Collection API