Submitted by: Mohammad Sajid Anwar
You are given a list of words containing alphabetic characters only.
Write a script to return the count of words either starting with a vowel or ending with a vowel.
Input: @list = ("unicode", "xml", "raku", "perl")
Output: 2
The words are "unicode" and "raku".
Input: @list = ("the", "weekly", "challenge")
Output: 2
Input: @list = ("perl", "python", "postgres")
Output: 0
Submitted by: Mohammad Sajid Anwar
You are given two arrays of integers.
Write a script to return the minimum integer common to both arrays. If none found return -1.
Input: @array_1 = (1, 2, 3, 4)
@array_2 = (3, 4, 5, 6)
Output: 3
The common integer in both arrays: 3, 4
The minimum is 3.
Input: @array_1 = (1, 2, 3)
@array_2 = (2, 4)
Output: 2
Input: @array_1 = (1, 2, 3, 4)
@array_2 = (5, 6, 7, 8)
Output: -1
Last date to submit the solution 23:59 (UK Time) Sunday 4th May 2025.