get Size Of Box Keeping Ratio Given Container
This function is used to calculate the size of a Box (our camera preview) after scaling it down to be fitted in a Container while preserving the aspect ration of the Box
To fit the Box in the Container, we consider the aspect ratio (AR) cases:
Box AR is wider than Container:
Set Box width equal to Container width
Scale down height of Box and keep Box AR
Box AR is taller than Container:
Set Box height equal to Container height
Scale down width of Box and keep Box AR