IBM Interview Question

All the basic to Advanced and asked me to write the LWC code.