Samsung Electronics interview question

solve taylor without loop