Pergunta de entrevista da empresa PTC

Ajax code optimise and convert it to better readable code. hint : async and await.