There would be more than one way to do that. Here I’ve just cut from a solid block using two sketch planes, side and end shapes.
I hope that’s of some help to you.