KPMG interview question

One assessment question C# with Entity framework sub-problems.