1E interview question

Design and write code for tennis tournament. Questions on CPU and memory usage.