Company: Intuit_16march
Difficulty: medium
Given an array of strings, count the strings that contain at least one uppercase character and output the result to STDOUT. Example: my_array = ["FirstWord", "Word2", "thirdword"] The match_uppercase function will return 2 since "FirstWord" and "Word2" each contain an uppercase letter. Input Format For Custom Testing ▼ Sample Case 0 Sample Input For Custom Testing Abc bcd Efg def cDe Sample Output 3 Explanation There are 3 strings containing at least one uppercase character: "Abc", "Efg", and "cDe". ▼ Sample Case 1 Sample Input For Custom Testing SingleWord Sample Output 1 Explanation There is 1 string containing at least one uppercase character: "SingleWord". Language: BASH #!/usr/bin/env bash # Input array is read and stored in to my_array variable. # You can view the code by pressing > button above. function match_uppercase() { typeset -a data=("$@") # Write your code here } match_uppercase "${my_array[@]}"