M2P Fintech interview question

Asked DSA questions on strings, array and linkedlist