The natural way to write it is with three nested for-loops. But it also applies to cleverer implementations. Also, it's fine if you don't mutate B or C, but the normal way to do it is to initialize A ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results