Given a string `substr`, getMovieTitles() must perform the following tasks:
1. Query https://jsonmock.hackerrank.com/api/movies/search/?Title=substr (replace substr).
2. Initialize the titles array to store total string elements. Store the Title of each movie meeting the search criterion in the titles array.
3. Sort titles in ascending order and return it as your answer.
let me know any other solution for this problem
Learn Fetch API In 6 Minutes
HackerRank API Interview Question and Answer
Urllib - GET Requests || Python Tutorial || Learn Python Programming
React autocomplete search from API