Created for the Search For a Star 2017 Code competition The competition consists of 3 stages: Stage 1 HackerRank C++ code test to complete in 90 minutes under exam conditions. Stage 2 Qualifying students from round 1 will be provided with a very loose game…