← all problems

removeCharAt 🌶️🌶️

Write a method that takes a String parameter s and an int parameter index, and returns a new String that is the same as s but with the single character at position index removed. For example, removeCharAt("hello", 1) should return "hllo". You may assume index is always a valid index of s.