You need to implement a function that calculates the total deliciousness of cakes made by combining various types of cream and sponge. Each type of cream has a specific taste level, and the same goes for the sponge. The total deliciousness is determined by multiplying the sum of the taste levels of the creams by the sum of the taste levels of the sponges.
Functionality Requirements:
Implement a function named calculate_total_deliciousness that calculates the total deliciousness as described.
The function should accept the following parameters:
An integer N representing the number of types of cream.
An integer M representing the number of types of sponge.
A list of integers A of length N, where each integer represents the taste level of a type of cream.
A list of integers B of length M, where each integer represents the taste level of a type of sponge.
The function must return a single integer representing the total deliciousness of the cakes.
Input Requirements:
N: A positive integer (1 ≤ N ≤ 100).
M: A positive integer (1 ≤ M ≤ 100).
A: A list of integers, each in the range [-100, 100].
B: A list of integers, each in the range [-100, 100].
Output Requirements:
The output should be an integer that represents the total deliciousness calculated as the product of the sum of cream tastes and the sum of sponge tastes.
Implementation:
Write the solution in a file named /app/solution.py.
Make sure to test the function thoroughly with different inputs to ensure it works as expected.