Question bank › Sorting
Dsa Sorting Medium

Book Title Sort

You have a list of book titles, and your task is to sort them in alphabetical order. The input consists of multiple book titles, each title appearing on a new line. After processing the input, print the sorted titles, each on a new line. Example: Input: Harry Potter and the Sorcerer's Stone The Great Gatsby To Kill a Mockingbird Output: Harry Potter and the Sorcerer's Stone The Great Gatsby To Kill a Mockingbird

Key concepts

sortingstrings

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.