Submitted by: Mohammad Sajid Anwar
You are given a string containing lowercase letters.
Write a script to transform the string based on the index position of each character (starting from 0). For each character at position i, repeat it i + 1 times.
Input: "abca"
Output: "abbcccaaaa"
Index 0: 'a' -> repeated 1 time -> "a"
Index 1: 'b' -> repeated 2 times -> "bb"
Index 2: 'c' -> repeated 3 times -> "ccc"
Index 3: 'a' -> repeated 4 times -> "aaaa"
Input: "xyz"
Output: "xyyzzz"
Index 0: 'x' -> "x"
Index 1: 'y' -> "yy"
Index 2: 'z' -> "zzz"
Input: "code"
Output: "coodddeeee"
Index 0: 'c' -> "c"
Index 1: 'o' -> "oo"
Index 2: 'd' -> "ddd"
Index 3: 'e' -> "eeee"
Input: "hello"
Output: "heelllllllooooo"
Index 0: 'h' -> "h"
Index 1: 'e' -> "ee"
Index 2: 'l' -> "lll"
Index 3: 'l' -> "llll"
Index 4: 'o' -> "ooooo"
Input: "a"
Output: "a"
Index 0: 'a' -> "a"
Submitted by: Peter Campbell Smith
You are given an array of integers.
Write a script to return them in alphabetical order, in any language of your choosing.
Input: (6, 7, 8, 9 ,10)
Output: (8, 9, 7, 6, 10)
eight, nine, seven, six, ten
Input: (-3, 0, 1000, 99)
Output: (-3, 99, 1000, 0)
minus three, ninety-nine, one thousand, zero
Input: (1, 2, 3, 4, 5)
Output: (5, 2, 4, 3, 1)
cinq, deux, quatre, trois, un
Input: (0, -1, -2, -3, -4)
Output: (-4, -1, -3, -2, 0)
minus four, minus one, minus three, minus two, zero
Input: (100, 101, 102)
Output: (100, 101, 102)
one hundred, one hundred and one, one hundred and two
Last date to submit the solution 23:59 (UK Time) Sunday 1st March 2026.