MyWays interview question

related to js and nodejs reverse string ,rotate array by k elements theory on react hooks questions based on projects