Guidance on Rebasing in Git - Need to Edit Second Commit in a PR

I've recently raised a pull request (PR) that includes 5 commits. The latest commit is intended to fix a bug introduced in the second commit. Now, I want to clean up my PR by deleting the last commit and incorporating the bug fix into the second commit.

Here are a few details about my situation:

  1. I've raised a pull request with 5 commits.
  2. The latest commit is a bug fix for an issue introduced in the second commit.
  3. Our organization follows a rebase-oriented workflow.

I've been reading about rebasing, but I'm a bit unsure about the steps I need to take to achieve what I want. Can someone guide me on how to remove the last commit, incorporate its changes into the second commit, and update the pull request accordingly?

this is the last commit ( 5th one ) i want to delete and update second commit with 5th commit changes

second commit:

https://preview.redd.it/wkvpje4mcf7c1.png?width=1520&format=png&auto=webp&s=c3a514a62f62dd28a28118389a2047229f7b1c89