Lenskart Solutions interview question

2 Data structure coding question