CarPro Systems interview question

Write a post api calling method