i know this is an annoying question, but can someone explain me why splice method is executing in a weird way. Please explain me why the expected output is different from the ac