Implement sin(x) with precision constraints | Snapchat Interview Question