Nagarro interview question

diff b/t head and post method