In code folder I have added Stack and Queue file Also I made index file which use that Queue and Stack class and print data.

In project folder I have created api project in laravel

  • Please install require dependency using composer.
  • As per your instruction I have used redis and also give route for flush.json.(you can find all route in api.php)
  • While installing docker in my local i am getting certain os issue so i am not able to use Docker as per time limit.