Implement a function called calculate_required_colors that takes a string s as input and returns a list of counts representing how many 4-character segments in the string are missing each of the colors 'R', 'G', 'B', and 'Y'.
Functionality Requirements:
The function should process the input string s in chunks of 4 characters.
For each chunk, the function should check for the presence of the colors 'R', 'G', 'B', and 'Y'.
The output should be a list containing 4 integers:
The first integer represents the number of chunks missing the color 'R'.
The second integer represents the number of chunks missing the color 'G'.
The third integer represents the number of chunks missing the color 'B'.
The fourth integer represents the number of chunks missing the color 'Y'.
Input/Output Requirements:
Input: A single string s consisting of uppercase letters. The length of s can be any non-negative integer.
Output: A list of 4 integers, each representing the count of chunks missing the respective colors.
Example:
Input: "RGBYRGBY"
Output: [0, 0, 0, 0]
(since each color is present in each chunk)
Input: "RGBRGBYRBY"
Output: [1, 1, 0, 1]
(the first two chunks are missing 'Y', the second chunk is missing 'G', and the last chunk is missing 'R')
Implementation Instructions:
Write the solution in a file named /app/solution.py.
Ensure the function name and signature match the provided definition.