date 28 29 toisostring 28 29 slice 280 10 29 giving wrong result

Solutions on MaxInterview for date 28 29 toisostring 28 29 slice 280 10 29 giving wrong result by the best coders in the world